define(
["factory/POIFormatter", "entity/POI"],
function(POIFormatter, POI){
    return {
        createPOIs: function(src, POIRendererMgr, systemMgr, convF, doneCallback) {
            //Parse to a friendlier format
            POIFormatter.process(src, convF, function(POIs) {
                //Create array of POIs output
                var out = [];

                //Create POIs based on the format
                POIs.forEach(function(val) {
                    var p = POI.create().init(val, null, POIRendererMgr, systemMgr);
                    out.push(p);
                });

                //Fire callback
                doneCallback(out);
            });
        }
    };
});